// 统一各种输入框字体大小
.el-range-input,
.el-input__inner,
.el-textarea__inner,
.el-table .cell {
  font-size: 14px !important;
}

.cell,
.el-input__inner,
.el-textarea__inner,
.el-checkbox__label,
.el-tag.el-tag--info,
.el-radio__label {
  color: $defaultTextColor1;
}

//去掉圆角
.el-button,
.el-input__inner,
.el-textarea__inner {
  border-radius: 0 !important;
}

.is-disabled {
  input,
  span,
  textarea {
    color: $defaultTextColor1 !important;
  }
}

// 解决l-table-column添加fixed底部被遮挡的bug
.el-table__fixed-right,
.el-table__fixed-left,
.el-table__fixed {
  height: 100% !important;
}

//去掉type类型为空的按钮（镂空按钮）悬浮时的背景色
.el-button--default.el-button--mini:hover,
.el-button--default.el-button--mini:focus,
.el-message-box__btns button:nth-child(1):hover,
.el-message-box__btns button:nth-child(1):focus {
  background-color: transparent !important;
}

//级联最小高度
.el-cascader-menu__wrap {
  min-height: 300px !important;
}

//修改mini模式下样式
.el-button--mini {
  font-size: 14px !important;
  padding: 6px 15px !important;
}

//统一element组件宽度
.el-form {
  .el-select,
  .el-cascader,
  .el-input,
  .el-date-editor {
    width: 100%;
  }
}

// 表格loading、行高
.el-table {
  .el-loading-mask {
    background-color: rgba(255, 255, 255, 0.2);
  }
  .cell {
    line-height: 18px;
    color: $defaultTextColor1;
  }
  .el-table__header {
    height: 40px;
  }
  .el-table__cell {
    height: 40px;
  }
  .cell.el-tooltip {
    &:hover {
      white-space: pre-line;
    }
  }
}

// 更改el-dialog弹窗样式
.el-dialog {
  min-width: 500px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}
.el-dialog__title {
  font-size: 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 600;
  color: #3a3d49;
}

.el-dialog__header {
  border-bottom: 1px solid rgba(231, 236, 245, 1);
  padding: 8px 20px;
}
.el-dialog__headerbtn {
  top: 6px;
  right: 12px;
  font-size: 24px;
  .el-dialog__close {
    color: rgba(175, 179, 193, 1);
  }
}
.el-dialog__footer {
  border-top: 1px solid rgba(231, 236, 245, 1);
  padding: 10px 20px;
  background: rgba(242, 244, 247, 1);
  .el-button {
    min-width: 100px;
  }
}

// 更改$confirm弹窗样式
.el-message-box__content {
  padding: 30px 15px;
  margin: 10px 0;
  border-top: 1px solid rgba(231, 236, 245, 1);
  border-bottom: 1px solid rgba(231, 236, 245, 1);
}

// 调整el-upload样式
.w100_Upload {
  .el-upload-dragger,
  .el-upload--text {
    width: 100%;
    height: 240px;
    margin-bottom: 10px;
  }
}

// 解决el-cascader级联选择器小圆点无法选中问题
.el-cascader-panel {
  .el-radio {
    width: 100%;
    height: 100%;
    z-index: 10;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .el-radio__input {
    visibility: hidden;
  }
}

.el-cascader__dropdown {
  .el-cascader-node {
    position: relative;
  }
  .el-checkbox {
    position: absolute;
    left: 10px;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

//解决el-cascader多选在IE中样式不正常
.el-cascader__tags .el-tag > span {
  flex: auto;
}
.el-cascader-node__postfix {
  top: 50% !important;
  transform: translateY(-50%);
}

// 表格分页
.el-pagination {
  margin: 26px 0 10px;
  text-align: right;
  .btn-prev,
  .btn-next,
  .el-pager li,
  .el-pagination__total,
  .el-input__inner {
    line-height: 32px !important;
    height: 32px !important;
  }
  .el-pagination__jump {
    margin-left: 12px !important;
  }
}

//el-form-item
.el-form-item__label {
  color: $defaultTextColor2;
}

//el-table中 show-overflow-tooltip过长时
.el-tooltip__popper {
  max-width: 400px;
  font-size: 14px;
}

// el-collapse折叠面板
.el-collapse-item__header {
  color: $defaultTextColor1;
}

//el-drawer
.el-drawer__header {
  color: $defaultTextColor1;
  font-size: 16px;
}

//el-table中 show-overflow-tooltip过长时
.el-tooltip__popper {
  max-width: 400px;
  font-size: 14px;
}

//解决el-input右边插槽ie兼容问题
.el-input__suffix {
  pointer-events: all !important;
}

//查看情况加了disabled的 radio checkbox
.is-checked {
  .el-checkbox__input.is-disabled + span.el-checkbox__label,
  .el-radio__input.is-disabled + span.el-radio__label {
    color: $--color-primary !important;
  }
  .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
    background-color: $--color-primary;
    border-color: $--color-primary;
  }
  .el-checkbox__input.is-disabled .el-checkbox__inner::after {
    border-color: #fff;
  }
  .el-radio__input.is-disabled .el-radio__inner,
  .el-radio__input.is-disabled.is-checked .el-radio__inner {
    background-color: $--color-primary;
    border-color: $--color-primary;
  }
  .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
    background-color: #fff;
  }
}

//公共input (登录页，个人信息弹窗)
.common-input {
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-transition-delay: 99999s;
    -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
  }
  input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px transparent inset !important;
  }
  .el-input__suffix {
    padding: 0 10px;
    pointer-events: all !important;
    line-height: 40px;
    .show-pwd {
      font-size: 16px;
      cursor: pointer;
      user-select: none;
      transform: translateY(3px);
    }
  }
  .el-input__prefix {
    font-size: 18px;
    padding-right: 10px;
    line-height: 40px;
  }
  .el-input--prefix {
    .el-input__inner {
      padding-left: 34px;
    }
  }
  .el-input__inner {
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    border-radius: 2px 2px 2px 2px;
  }
  .el-form-item {
    margin-bottom: 15px !important;
  }
}
